﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BL.objects;

namespace BL
{
    public class Edge
    {
        public int  Id { get; set; }
        public Vertex InVertex { get; set; }
        public Vertex OutVertex { get; set; }
        public double Weight { get; set; }
        public List<LongLat> Coordinates { get; set; }      

        public Edge(int id, int inVertex, int outVertex, double weight)
        {
            Id = id;
            InVertex = new Vertex(inVertex);
            OutVertex = new Vertex(outVertex);
            Weight = weight;
        }

        public Edge(int id, int inVertex, double in_latitude, double in_longtitude, int outVertex, double out_latitude, double out_longtitude, double weight)
        {
            Id = id;
            InVertex = new Vertex(inVertex, in_longtitude, in_latitude);
            OutVertex = new Vertex(outVertex, out_longtitude, out_latitude);
            Weight = weight;
        }
    }
}
